<?php
	if ($_SERVER['SERVER_ADDR'] != $_SERVER['REMOTE_ADDR']){
		//die("Access denied!");
	}

require_once "wp-config.php";
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
mysql_select_db(DB_NAME);
mysql_query("SET NAMES utf8"); //connect in decode utf8
date_default_timezone_set('Asia/Ho_Chi_Minh');

$sql= "select user_email from g_users order by  user_reg_date";
$ret = mysql_query($sql);
$i=mysql_num_rows($ret);
while ($row=mysql_fetch_array($ret)) {
	echo $row["user_email"];
	if ($i>1) echo ",";
	$i--;
}


?>
